﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lm.Common.Auth.Model
{
    partial class Account
    {
        public RoleStatus GetStatus()
        { return (Model.RoleStatus)Enum.Parse(typeof(RoleStatus), this.Status); }
        public void SetStatus(RoleStatus roleStatus)
        { this.Status = roleStatus.ToString(); }
    }
    public enum AccountStatus
    {
        /// <summary>
        /// 草稿，可进行删除和修改
        /// </summary>
        Draft,
        /// <summary>
        /// 作废状态，不生效，不能进行任何修改
        /// </summary>
        Death,
        /// <summary>
        /// 可用状态，可修改，修改经审核后才生效
        /// </summary>
        Live 
    }
}
